package com.pearl.jacksoncore.demo.feature;

/**
 * @author TD
 * @version 1.0
 * @date 2024/4/2
 */

public class Person {
    private String name;
    private Person spouse;

    public Person(String name, Person spouse) {
        this.name = name;
        this.spouse = spouse;
    }

    // getters and setters
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Person getSpouse() {
        return spouse;
    }

    public void setSpouse(Person spouse) {
        this.spouse = spouse;
    }
}